package sis.studentinfotest;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-07-23 09:32
 * @notify
 * @version 1.0
 */

import junit.framework.TestCase;
import sis.studentinfo.BasicGradingStrategy;
import sis.studentinfo.Student;

public class BasicGradingStrategyTest extends TestCase {

    public void testGetGradePoints(){
        BasicGradingStrategy basicGradingStrategy  = new BasicGradingStrategy();
        assertEquals(4,basicGradingStrategy.getGradePointsFor(Student.Grade.A));
        assertEquals(3,basicGradingStrategy.getGradePointsFor(Student.Grade.B));
        assertEquals(2,basicGradingStrategy.getGradePointsFor(Student.Grade.C));
        assertEquals(1,basicGradingStrategy.getGradePointsFor(Student.Grade.D));
    }
}
